package com.linshengjian.core;

/**
 * 业务错误异常类
 * Created by shengjian.lin on 17-1-4.
 */
public class BusinessException extends Exception {

    private String code;

    public BusinessException(String message) {
        super(message);
    }

    private BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String code() {
        return code;
    }
}
